﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lonewolf.IService
{
    public partial interface IAdminRoleService
    {
        /// <summary>
        /// 给用户配置角色信息。   
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <param name="roleIds">角色ID集合</param>
        void SetRole(string userId, params string[] roleIds);
        /// <summary>
        /// 根据用户Id获取权限Id列表
        /// </summary>
        /// <returns></returns>
        IQueryable<string> GetRoleIdsByUserId(string userId);
    }
}
